package cn.com.bsoft.wePortal.controller

import org.springframework.http.MediaType
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.ResponseBody


@Controller
@RequestMapping("/demo")
class DemoController{

    @ResponseBody
    @RequestMapping("/checkSign",consumes = arrayOf(MediaType.APPLICATION_JSON_VALUE))
    fun checkSign(@RequestBody req:Map<String,String>):Map<String,String>{
        return mapOf("result" to "OK")
    }
}